// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Vuex from 'vuex'
import Router from 'vue-router'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import 'vue-awesome/icons'
import Icon from 'vue-awesome/components/Icon'
Vue.component('icon', Icon)

import App from '@/pages/App'
import createRouter from '@/router'
import createStore from '@/store'
import {configure} from '@/util/http'

Vue.use(Vuex)
Vue.use(Router)
Vue.use(ElementUI)

const store = createStore(Vuex)
const router = createRouter(Router)
configure(store, router, ElementUI)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    store,
    template: '<App/>',
    components: {App}
})
